import Loadable from 'react-loadable';
import CommonLoading from '@/components/commonLoading';


const LoadableRouter = (component: Function) => {
  return (
    Loadable({
      loading: CommonLoading,
      loader: component,
      delay: 200
    })
  )
}

export default LoadableRouter;
